<!DOCTYPE html>
<html>
    <head>
        <title>RTL Selection repaint test for complex text</title>
    </head>
    <body>
        <!-- The &#x0300; forces complext text rendering -->
        <bdo dir="rtl">m&#x0300;uspimeroL</bdo>
        <p>
          Tests that rtl selections are repainted correctly for complex text.
        </p>
        <script>
            var el = document.getElementsByTagName('bdo')[0];
            var text = el.firstChild;
            window.getSelection().setBaseAndExtent(text, 2, text, 6);
        </script>
    </body>
</html>
